package com.neu.yishu.model;

import java.math.BigDecimal;

public class BookInfo {
    private Long id;

    private Long userId;

    private String bookName;

    private Byte bookStatus;

    private String bookType;

    private BigDecimal bookPrice;

    public BookInfo(Long id, Long userId, String bookName, Byte bookStatus, String bookType, BigDecimal bookPrice) {
        this.id = id;
        this.userId = userId;
        this.bookName = bookName;
        this.bookStatus = bookStatus;
        this.bookType = bookType;
        this.bookPrice = bookPrice;
    }

    public BookInfo() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Byte getBookStatus() {
        return bookStatus;
    }

    public void setBookStatus(Byte bookStatus) {
        this.bookStatus = bookStatus;
    }

    public String getBookType() {
        return bookType;
    }

    public void setBookType(String bookType) {
        this.bookType = bookType;
    }

    public BigDecimal getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(BigDecimal bookPrice) {
        this.bookPrice = bookPrice;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", bookName=").append(bookName);
        sb.append(", bookStatus=").append(bookStatus);
        sb.append(", bookType=").append(bookType);
        sb.append(", bookPrice=").append(bookPrice);
        sb.append("]");
        return sb.toString();
    }
}